package com.mall.common.config;

import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Seata配置类
 * 
 * 使用示例：在业务方法上添加 @GlobalTransactional 注解即可
 * @GlobalTransactional(name = "tx_order_create", rollbackFor = Exception.class)
 */
@Configuration
@EnableAspectJAutoProxy
public class SeataConfig {
    // Seata配置已在application.yml中完成
} 